{{extend 'adminlayout.html'}}

<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>Flavors manager </h3>
					
					<ul class="content-box-tabs">
						<li><a href="#tab1" class="default-tab">Flavors of System</a></li> <!-- href must be unique and match the id of target div -->
						<li><a href="{{=URL('create')}}" >Create new flavor</a></li> <!-- href must be unique and match the id of target div -->
					</ul>
					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
			   
					<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
					
						 <div class="notification attention png_bg">
							<a href="#" class="close"><img src="resources/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
							<div>
								{{=response.flash}}
							</div>
						</div> 
						
						<table>
							
							<thead>
								<tr>
								   <th>SN</th>
								   <th>Flavor Name</th>
								   <th>CPU</th>
								   <th>RAM</th>
								   <th>DISK</th>
								   <th>CREATED TIME</th>
								   <th>Action</th>
								</tr>
								
							</thead>
						 
							<tfoot>
								<tr>
										
										<div class="pagination">
										<a href="#" class="number current" title="1">1</a>
											<!--  <a href="#" title="First Page">&laquo; First</a><a href="#" title="Previous Page">&laquo; Previous</a>
											
											
											<a href="#" title="Next Page">Next &raquo;</a><a href="#" title="Last Page">Last &raquo;</a>
											-->
										</div> <!-- End .pagination -->
										<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
						 
							<tbody>	
					
{{
sn=1
for flavor in sysFlavor:}}
								<tr>
									<td>{{=sn}}</td>
									<td>{{=flavor.flavor_name}}</td>
									
									<td>{{=flavor.flavor_cpu}}</td>
									<td>{{=flavor.flavor_ram}} MB</td>
									<td>{{=flavor.flavor_disk}} GB</td>
									<td>{{=flavor.flavor_created_time}}</td>
									<td>
									
										<!-- Icons -->
										 <a href="#" title="Edit Flavor"><img src="{{=URL('static','images/icons/pencil.png')}}" alt="Edit" /></a>
										 <a href="#" title="Delete Flavor"><img src="{{=URL('static','images/icons/cross.png')}}" alt="Delete" /></a> 
										
									</td>
								</tr>
{{
	sn=sn+1
pass
}}
							</tbody>
							
						</table>
						
					</div> <!-- End #tab1 -->
					

				</div> <!-- End .content-box-content -->
<div class="clear"></div><!-- End .clear -->
